from wordcloud import WordCloud
import matplotlib.pyplot as plt
with open('1.txt','r') as f:
    mytext = f.read()
wordcloud = WordCloud().generate(mytext)
plt.imshow(wordcloud,interpolation = "bilinear")
plt.axis("off")
plt.show()